import org.hibernate.Session;

import com.agenda.ub.HibernateUtil;


public class Connect {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Session session = null;
		
		try {
			session = HibernateUtil.getSession().openSession();
			System.out.println("Connection established");
		} finally {
			session.close();
			System.out.println("Connection closed");
		}

	}

}
